package com.example.configclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Wangcc
 * @version V1.0
 * @Description: TODO
 * @date 2018/3/12 11:29
 */
@RestController
public class DcController {

    @Value("${content}")
    String foo;


    @GetMapping(value = "/hi")
    public String hi(){
        return foo;
    }
}
